\hypertarget{class_server_1_1_data_handler}{\section{Server.\-Data\-Handler Class Reference}
\label{class_server_1_1_data_handler}\index{Server.\-Data\-Handler@{Server.\-Data\-Handler}}
}


Klasse der styre initialiseringen af Users fra en text fil.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_server_1_1_data_handler_a09c56e12e4cfc162adcbca64fb31bafb}{Data\-Handler} (string file\-Name\-In)
\begin{DoxyCompactList}\small\item\em Constrctor. Læser brugere fra filen angivet som input \end{DoxyCompactList}\item 
void \hyperlink{class_server_1_1_data_handler_a926f0bb6c2659d125d2fe0ba27b7afa4}{Write\-User\-Database\-To\-File} ()
\begin{DoxyCompactList}\small\item\em Skriver User-\/listen til fil, hvis navn blev specificeret i contructoren \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Properties}
\begin{DoxyCompactItemize}
\item 
List$<$ \hyperlink{class_s_w2_a311___lib_1_1_user}{User} $>$ \hyperlink{class_server_1_1_data_handler_ad4b39c7758a6912270d9a094b5e66109}{Users}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\item 
string \hyperlink{class_server_1_1_data_handler_a51e8afbde1cfaa81be6329d2e9f72c9b}{Filename}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{class_server_1_1_data_handler_ac823256e47a5b0f2a56a9df90ac67fb8}{init\-User\-Data\-From\-File} ()
\begin{DoxyCompactList}\small\item\em Læser User fra fil. Der bliver tilføjet en admin, med værdierne\-: Brugernavn\-: Admin Password\-: 123456 Hvis filen ikke eksistere bliv admin tilføjet som den eneste \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Klasse der styre initialiseringen af Users fra en text fil. 



Definition at line 11 of file Data\-Handler.\-cs.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_server_1_1_data_handler_a09c56e12e4cfc162adcbca64fb31bafb}{\index{Server\-::\-Data\-Handler@{Server\-::\-Data\-Handler}!Data\-Handler@{Data\-Handler}}
\index{Data\-Handler@{Data\-Handler}!Server::DataHandler@{Server\-::\-Data\-Handler}}
\subsubsection[{Data\-Handler}]{\setlength{\rightskip}{0pt plus 5cm}Server.\-Data\-Handler.\-Data\-Handler (
\begin{DoxyParamCaption}
\item[{string}]{file\-Name\-In}
\end{DoxyParamCaption}
)}}\label{class_server_1_1_data_handler_a09c56e12e4cfc162adcbca64fb31bafb}


Constrctor. Læser brugere fra filen angivet som input 


\begin{DoxyParams}{Parameters}
{\em file\-Name\-In} & File User skal læses fra\\
\hline
\end{DoxyParams}


Definition at line 20 of file Data\-Handler.\-cs.



\subsection{Member Function Documentation}
\hypertarget{class_server_1_1_data_handler_ac823256e47a5b0f2a56a9df90ac67fb8}{\index{Server\-::\-Data\-Handler@{Server\-::\-Data\-Handler}!init\-User\-Data\-From\-File@{init\-User\-Data\-From\-File}}
\index{init\-User\-Data\-From\-File@{init\-User\-Data\-From\-File}!Server::DataHandler@{Server\-::\-Data\-Handler}}
\subsubsection[{init\-User\-Data\-From\-File}]{\setlength{\rightskip}{0pt plus 5cm}void Server.\-Data\-Handler.\-init\-User\-Data\-From\-File (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [private]}}}\label{class_server_1_1_data_handler_ac823256e47a5b0f2a56a9df90ac67fb8}


Læser User fra fil. Der bliver tilføjet en admin, med værdierne\-: Brugernavn\-: Admin Password\-: 123456 Hvis filen ikke eksistere bliv admin tilføjet som den eneste 



Definition at line 34 of file Data\-Handler.\-cs.

\hypertarget{class_server_1_1_data_handler_a926f0bb6c2659d125d2fe0ba27b7afa4}{\index{Server\-::\-Data\-Handler@{Server\-::\-Data\-Handler}!Write\-User\-Database\-To\-File@{Write\-User\-Database\-To\-File}}
\index{Write\-User\-Database\-To\-File@{Write\-User\-Database\-To\-File}!Server::DataHandler@{Server\-::\-Data\-Handler}}
\subsubsection[{Write\-User\-Database\-To\-File}]{\setlength{\rightskip}{0pt plus 5cm}void Server.\-Data\-Handler.\-Write\-User\-Database\-To\-File (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_server_1_1_data_handler_a926f0bb6c2659d125d2fe0ba27b7afa4}


Skriver User-\/listen til fil, hvis navn blev specificeret i contructoren 



Definition at line 55 of file Data\-Handler.\-cs.



\subsection{Property Documentation}
\hypertarget{class_server_1_1_data_handler_a51e8afbde1cfaa81be6329d2e9f72c9b}{\index{Server\-::\-Data\-Handler@{Server\-::\-Data\-Handler}!Filename@{Filename}}
\index{Filename@{Filename}!Server::DataHandler@{Server\-::\-Data\-Handler}}
\subsubsection[{Filename}]{\setlength{\rightskip}{0pt plus 5cm}string Server.\-Data\-Handler.\-Filename\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}, {\ttfamily [package]}}}\label{class_server_1_1_data_handler_a51e8afbde1cfaa81be6329d2e9f72c9b}


Definition at line 14 of file Data\-Handler.\-cs.

\hypertarget{class_server_1_1_data_handler_ad4b39c7758a6912270d9a094b5e66109}{\index{Server\-::\-Data\-Handler@{Server\-::\-Data\-Handler}!Users@{Users}}
\index{Users@{Users}!Server::DataHandler@{Server\-::\-Data\-Handler}}
\subsubsection[{Users}]{\setlength{\rightskip}{0pt plus 5cm}List$<${\bf User}$>$ Server.\-Data\-Handler.\-Users\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}, {\ttfamily [package]}}}\label{class_server_1_1_data_handler_ad4b39c7758a6912270d9a094b5e66109}


Definition at line 13 of file Data\-Handler.\-cs.



The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Server/\hyperlink{_data_handler_8cs}{Data\-Handler.\-cs}\end{DoxyCompactItemize}
